﻿using System.Collections.Generic;
using System.Globalization;
using Bricks;

namespace Motar
{
    
    /// <summary>
    /// 
    /// </summary>
    public interface ILocaleResolverFacade
    {

        /// <summary>
        /// 
        /// </summary>
        ICollection<string> Locales { get; }

        /// <summary>
        /// 
        /// </summary>
        string DefaultLocale { get; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <param name="culture"></param>
        /// <returns></returns>
        ILocaleResolverFacade Register(string key, CultureInfo culture);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        CultureInfo Resolve();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        CultureInfo Resolve(string key);
    }

    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TResolver"></typeparam>
    public interface ILocaleResolverFacade<TResolver> : ILocaleResolverFacade, IFacade<TResolver>
    {
    }
}
